<?php

class OrderItem_model extends CI_Model {

	function __construct() {
		parent::__construct();
	}

	function getAll($id){
		$query = $this->db->get_where('order_item', array("order_id" => $id));
		return $query->result('OrderItem');

}
?>